package spaceCraft;

import Flyer.FlyWithTurbo;
import GetOffEr.GetOffManually;


/**
 * Class is screated for testing purpose. First is testing the space ship handling
 * with default modes (AutoPilot). Than testing is preformed with changed engine and switched mode.
 */
public class TestDrive {


    public static final int ACCELERATION9000 = 9000;
    public static final int ACCELERATION9 = 9;

    public static void main(String[] args) {

        /*          Engine turboEngine = new Engine(new ProductInfo("UAC", "WRX-STI"), ACCELERATION9000);
   Engine standardEngine = new Engine(new ProductInfo("STD-888", "RocketFactory"), ACCELERATION9);

   SpaceShip spaceShip = new SpaceShip(new ProductInfo("UAC", "\"FireFly\""), standardEngine);
        SpaceShip spaceShip2 = new SpaceShip(new ProductInfo("UAC", "\"FireFly\""), standardEngine);
                  System.out.print(spaceShip.equals(spaceShip2));
  /* spaceShip.getProductInfo();

   flyFirstTime(spaceShip);

   installNewEngine(turboEngine, spaceShip);

   crashNewEngine(turboEngine, spaceShip);

   turboEngine.repairDevice();

   flyWithNewEngine(spaceShip);     */
    }
    /*
    private static void crashNewEngine(Engine turboEngine, SpaceShip spaceShip) {
        turboEngine.breakDevice();
        print(spaceShip.getOff());
    }

    private static void installNewEngine(Engine turboEngine, SpaceShip spaceShip) {
        spaceShip.install(turboEngine);
        spaceShip.setGetOffMode(new GetOffManually());
        spaceShip.setFlyMode(new FlyWithTurbo());
    }

    private static void flyFirstTime(SpaceShip spaceShip) {
        print(spaceShip.getOff());
        print(spaceShip.fly());
        print(spaceShip.getCurrentLocation());
        print(spaceShip.land());
    }

    private static void flyWithNewEngine(SpaceShip spaceShip) {
        print(spaceShip.getOff());
        print(spaceShip.fly());
    }

    private static void print(String report) {
        System.out.println(report);
    }
       */

}
